#include <iostream>
#include "RPCSerialization.h"

int main() {
    RPCSerialization rtest1;
    std::string str("12345");
    rtest1.setArgStr(str, str.size());
    rtest1.setArgInt0(12);
    rtest1.setArgInt1(43);
    auto data = rtest1.serial();
    RPCSerialization rtest2;
    rtest2.deserial(data);

    std::cout << "ArgInt0 check: " << std::boolalpha <<  (rtest1.getArgInt0() == rtest2.getArgInt0()) << std::endl;
    std::cout << "ArgInt1 check: " << std::boolalpha <<  (rtest1.getArgInt1() == rtest2.getArgInt1()) << std::endl;
    std::cout << "m_length_ check: " << std::boolalpha <<  (rtest1.getLength() == rtest2.getLength()) << std::endl;
    std::cout << "getArgStr check: " << std::boolalpha <<  (rtest1.getArgStr() == rtest2.getArgStr()) << std::endl;
    return 0;
}